package com.dimples.dd.system.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.dimples.dd.tenant.core.dataobject.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色和菜单关联表
 */
@Schema(description="角色和菜单关联表")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "system_role_menu")
public class SystemRoleMenuDO extends TenantBaseDO {
    /**
     * 自增编号
     */
    @TableId(value = "id", type = IdType.INPUT)
    @Schema(description="自增编号")
    private Long id;

    /**
     * 角色ID
     */
    @TableField(value = "role_id")
    @Schema(description="角色ID")
    private Long roleId;

    /**
     * 菜单ID
     */
    @TableField(value = "menu_id")
    @Schema(description="菜单ID")
    private Long menuId;

    /**
     * 角色默认首页
     */
    @TableField(value = "role_default_home", updateStrategy = FieldStrategy.ALWAYS)
    @Schema(description="角色默认首页")
    private String roleDefaultHome;
}